package com.letoken.platform.pub.enums;

public enum LogOperationType {

    /**
     * 操作类型
     */
    INSERT("insert", 1, "新增"),
    UPDATE("update", 2, "修改"),
    DELETE("delete", 3, "删除"),
    SELECT("select", 4, "查询"),
    UNKNOWN("unknown", 5, "未知");

    private String name;
    private int value;
    private String description;

    LogOperationType(String name, int value, String description) {
        this.name = name;
        this.description = description;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
